<form action="" method="get">
    <div class="table-page">
        共<?=isset($total)?$total:1?>条   

        <div class="page-nums">
            <?php if(isset($hasPreviousPage) && $hasPreviousPage):?>
            <a href="<?=$url.'/'.$prePage.'?'.$get ?>" class="pre">上一页</ a>
            <?php else:?>
            <a class="pre disabled">上一页</ a>
            <?php endif;?>

            <?php foreach($navigatepageNums as $val):?>
            <a class="<?=$val==$pageNum?'current':''?>" href="<?=$url.'/'.$val.'?'.$get ?>"><?=$val?></a>
            <?php endforeach;?>

            <?php if(isset($hasNextPage) && $hasNextPage):?>
            <a href="<?=$url.'/'.$nextPage.'?'.$get ?>" class="next">下一页</a>
            <?php else:?>
            <a class="next disabled">下一页</a>
            <?php endif;?>
        </div>

        <span class="page" style="vertical-align: top;">
            <span style="vertical-align: top;">前往</span>
            <input style="vertical-align: middle; line-height: 30px;" type="text" name="" value="" class="turn-page-num" id="page-num" data-max="<?=$lastPage?>" data-url="<?=$url?>" data-get="?<?=$get?>">
            <span>页</span>
        </span>

    </div>
</form>